Skip to content

Upgrade from Webpacker 3 to Shakapacker 7 and React-Rails 3 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Aug 22, 2023

Conversation

ahangarha
Copy link
Contributor

@ahangarha ahangarha commented Apr 25, 2023

This PR upgrades the project as following:

  • From Webpacker 3 to Shakapacker 7 (step by step)
  • From React-Rails 2 to React-Rails 3 (for SSR support)

We may keep the branch (maybe with a more appropriate name) like other branches in this project.

@ahangarha ahangarha marked this pull request as ready for review August 1, 2023 16:11
@ahangarha ahangarha changed the title WIP - Webpacker 3 to Shakapacker 6 Upgrade from Webpacker 3 to Shakapacker 7 and React-Rails 3.0.0.rc.0 Aug 1, 2023
Copy link
Collaborator

@Judahmeek Judahmeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got some questions.

@justin808
Copy link
Member

@Judahmeek can review and merge.

@ahangarha
Copy link
Contributor Author

ahangarha commented Aug 2, 2023

@Judahmeek
Thanks for the review.

I am wondering why those duplicate lines were added. Since it was a long time since I started working on this PR, I don't remember what I was doing then.

We get some deprecation warnings in the terminal, and I believe it is because this project uses Rails 5. Do you think it should be fixed in this PR, or can it have another PR?

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'
gem "rails", "~> 5.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v6?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All in one PR?
I thought Upgrading Rails could and should have its own PR. And this little change was to make it possible to build the project. I don't remember now but there was an issue with Rails < 5.2. I couldn't run the app.

exec "yarnpkg #{ARGV.join(" ")}"
rescue Errno::ENOENT

APP_ROOT = File.expand_path("..", __dir__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this file not deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even in Shakapacker, we still have this file.

@ahangarha ahangarha changed the title Upgrade from Webpacker 3 to Shakapacker 7 and React-Rails 3.0.0.rc.0 Upgrade from Webpacker 3 to Shakapacker 7 and React-Rails 3 Aug 18, 2023
@Judahmeek Judahmeek merged commit 27fcb08 into master Aug 22, 2023
@Judahmeek Judahmeek deleted the wp3-to-sp6 branch August 22, 2023 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants